1
2 // This class is generated by XDoclet SDK (XGG). Do not edit!
3 package xdoclet.sdk.xtag.migrator;
4
5 /***
6 * <p>XML element: <b><namespace/></b></p>.
7 * This element exists in the following versions:
8 * <ul>
9 * <li>xtags_1_1.dtd</li>
10 * </ul>
11 *
12 * @bean.class name="namespace"
13 *
14 * @author <a href="http://xdoclet.sf.net/">XDoclet</a>
15 */
16 public final class Namespace extends xdoclet.sdk.xgg.XGGPojo {
17 /***
18 * Default constructor. Should not be called explicitly. It's available
19 * only to be able to convert xml into beans with Betwixt.
20 */
21 public Namespace() {
22 }
23
24 /***
25 * Constructor. Should only be called if the current version is of the following:
26 * <ul>
27 * <li>xtags_1_1.dtd</li>
28 * </ul>
29 * @param parent the parent element
30 * @throws java.lang.IllegalStateException if this constructor is illegal
31 * with the current version.
32 */
33 public Namespace( Xdoclet parent ) throws java.lang.IllegalStateException {
34 // Check that it's ok to call this constructor.
35 checkVersion( new String[] { "xtags_1_1.dtd" } );
36 parent.addNamespace( this );
37 }
38
39 /***
40 * <p>XML element: <a href="Xmlname.html"><name/></a></p>
41 * This element exists in the following versions:
42 * <ul>
43 * <li>xtags_1_1.dtd</li>
44 * </ul>
45 *
46 * The cardinality is (1..1)
47 *
48 * @param xmlname the Xmlname to add.
49 * @throws java.lang.IllegalStateException if this method is illegal
50 * with the current version.
51 */
52 public final void setXmlname( final Xmlname xmlname ) throws java.lang.IllegalStateException {
53 // Check that it's ok to call this method.
54 checkVersion( new String[] { "xtags_1_1.dtd" } );
55
56 // Check that it's not already set.
57 if( _xmlname != null ) {
58 throw new IllegalStateException("setXmlname(Xmlname) has already been called with " +
59 _xmlname + ". Attempt to call it again with " + xmlname
60 );
61 }
62 _xmlname = xmlname;
63 }
64
65 /***
66 * @bean.property
67 * @bean.attribute name="betwixt.index" value="0"
68 * @bean.attribute name="betwixt.name" value="name"
69 */
70 public final Xmlname getXmlname() {
71 return _xmlname;
72 }
73
74 private Xmlname _xmlname;
75
76 /***
77 * <p>XML element: <a href="UsageDescription.html"><usage-description/></a></p>
78 * This element exists in the following versions:
79 * <ul>
80 * <li>xtags_1_1.dtd</li>
81 * </ul>
82 *
83 * The cardinality is (1..1)
84 *
85 * @param usageDescription the UsageDescription to add.
86 * @throws java.lang.IllegalStateException if this method is illegal
87 * with the current version.
88 */
89 public final void setUsageDescription( final UsageDescription usageDescription ) throws java.lang.IllegalStateException {
90 // Check that it's ok to call this method.
91 checkVersion( new String[] { "xtags_1_1.dtd" } );
92
93 // Check that it's not already set.
94 if( _usageDescription != null ) {
95 throw new IllegalStateException("setUsageDescription(UsageDescription) has already been called with " +
96 _usageDescription + ". Attempt to call it again with " + usageDescription
97 );
98 }
99 _usageDescription = usageDescription;
100 }
101
102 /***
103 * @bean.property
104 * @bean.attribute name="betwixt.index" value="1"
105 * @bean.attribute name="betwixt.name" value="usage-description"
106 */
107 public final UsageDescription getUsageDescription() {
108 return _usageDescription;
109 }
110
111 private UsageDescription _usageDescription;
112
113 /***
114 * <p>XML element: <a href="ConditionDescription.html"><condition-description/></a></p>
115 * This element exists in the following versions:
116 * <ul>
117 * <li>xtags_1_1.dtd</li>
118 * </ul>
119 *
120 * The cardinality is (0..1)
121 *
122 * @param conditionDescription the ConditionDescription to add.
123 * @throws java.lang.IllegalStateException if this method is illegal
124 * with the current version.
125 */
126 public final void setConditionDescription( final ConditionDescription conditionDescription ) throws java.lang.IllegalStateException {
127 // Check that it's ok to call this method.
128 checkVersion( new String[] { "xtags_1_1.dtd" } );
129
130 // Check that it's not already set.
131 if( _conditionDescription != null ) {
132 throw new IllegalStateException("setConditionDescription(ConditionDescription) has already been called with " +
133 _conditionDescription + ". Attempt to call it again with " + conditionDescription
134 );
135 }
136 _conditionDescription = conditionDescription;
137 }
138
139 /***
140 * @bean.property
141 * @bean.attribute name="betwixt.index" value="2"
142 * @bean.attribute name="betwixt.name" value="condition-description"
143 */
144 public final ConditionDescription getConditionDescription() {
145 return _conditionDescription;
146 }
147
148 private ConditionDescription _conditionDescription;
149
150 /***
151 * <p>XML element: <a href="Condition.html"><condition/></a></p>
152 * This element exists in the following versions:
153 * <ul>
154 * <li>xtags_1_1.dtd</li>
155 * </ul>
156 *
157 * The cardinality is (0..1)
158 *
159 * @param condition the Condition to add.
160 * @throws java.lang.IllegalStateException if this method is illegal
161 * with the current version.
162 */
163 public final void setCondition( final Condition condition ) throws java.lang.IllegalStateException {
164 // Check that it's ok to call this method.
165 checkVersion( new String[] { "xtags_1_1.dtd" } );
166
167 // Check that it's not already set.
168 if( _condition != null ) {
169 throw new IllegalStateException("setCondition(Condition) has already been called with " +
170 _condition + ". Attempt to call it again with " + condition
171 );
172 }
173 _condition = condition;
174 }
175
176 /***
177 * @bean.property
178 * @bean.attribute name="betwixt.index" value="3"
179 * @bean.attribute name="betwixt.name" value="condition"
180 */
181 public final Condition getCondition() {
182 return _condition;
183 }
184
185 private Condition _condition;
186
187 /***
188 * <p>XML element: <a href="Tags.html"><tags/></a></p>
189 * This element exists in the following versions:
190 * <ul>
191 * <li>xtags_1_1.dtd</li>
192 * </ul>
193 *
194 * The cardinality is (1..1)
195 *
196 * @param tags the Tags to add.
197 * @throws java.lang.IllegalStateException if this method is illegal
198 * with the current version.
199 */
200 public final void setTags( final Tags tags ) throws java.lang.IllegalStateException {
201 // Check that it's ok to call this method.
202 checkVersion( new String[] { "xtags_1_1.dtd" } );
203
204 // Check that it's not already set.
205 if( _tags != null ) {
206 throw new IllegalStateException("setTags(Tags) has already been called with " +
207 _tags + ". Attempt to call it again with " + tags
208 );
209 }
210 _tags = tags;
211 }
212
213 /***
214 * @bean.property
215 * @bean.attribute name="betwixt.index" value="4"
216 * @bean.attribute name="betwixt.name" value="tags"
217 */
218 public final Tags getTags() {
219 return _tags;
220 }
221
222 private Tags _tags;
223
224 }
This page was automatically generated by Maven